<script setup>
import { ref, onMounted } from 'vue'

// 历史发展时间线数据
const timelineItems = [
  { period: '汉代（公元前206年-公元220年）', event: '皮影戏起源', description: '皮影戏最早起源于汉代，据史书记载，汉武帝因思念李夫人，方士李少翁用皮革裁成李夫人影像，用灯光照射在帷幕上，武帝看到影像如见真人。' },
  { period: '唐宋时期（618年-1279年）', event: '发展兴盛', description: '唐代时期，皮影戏开始广泛流传；到了宋代，皮影戏已经非常成熟，出现了专门的影戏艺人，演出内容更加丰富。' },
  { period: '明清时期（1368年-1912年）', event: '鼎盛时期', description: '明清两代是皮影戏的鼎盛时期，不仅在民间广泛流传，还进入了宫廷表演，各种流派逐渐形成。' },
  { period: '近现代（1912年至今）', event: '传承创新', description: '近现代以来，皮影戏面临挑战，但也在不断创新发展，2006年被列入第一批国家级非物质文化遗产名录。' }
]

// 制作工艺步骤
const craftingSteps = [
  { id: 1, name: '选皮制皮', description: '选择优质牛皮或驴皮，经过浸泡、刮削、晾晒等多道工序，制成透明均匀的皮影原料。' },
  { id: 2, name: '画稿设计', description: '根据角色特点设计图案，绘制在纸上，作为雕刻的蓝本。' },
  { id: 3, name: '雕刻成型', description: '将画稿贴在皮上，用特制刀具进行精细雕刻，要求线条流畅、图案精美。' },
  { id: 4, name: '着色上彩', description: '使用矿物颜料为皮影着色，色彩鲜艳且不易褪色。' },
  { id: 5, name: '熨平装订', description: '将着色后的皮影熨平，装上操作杆，完成制作。' }
]

// 匠影物语皮影工艺收藏级周边系列产品数据
const craftsProducts = [
  {
    id: 1,
    category: '微型精雕挂件/钥匙扣系列',
    name: '《匠心·微影》手工皮影挂件 - 基础版',
    description: '使用高级PVC材质，激光精雕，还原皮影经典纹样（水波、云纹等）。选择皮影制作中的经典工具或代表性皮影人物的局部特写。',
    price: 68,
    imageUrl: 'https://picsum.photos/id/210/400/300',
    material: '高级PVC',
    features: ['激光精雕', '经典纹样', '可随身携带'],
    inventory: 50
  },
  {
    id: 2,
    category: '微型精雕挂件/钥匙扣系列',
    name: '《匠心·微影》手工皮影挂件 - 收藏版',
    description: '使用优质植鞣革，由合作手艺人亲笔签名或亲手雕刻关键纹样，每件附带唯一编号收藏证书。',
    price: 198,
    imageUrl: 'https://picsum.photos/id/211/400/300',
    material: '植鞣革',
    features: ['手艺人签名', '唯一编号', '收藏证书'],
    inventory: 20
  },
  {
    id: 3,
    category: '"二十四道工序"主题盲盒/套装',
    name: '《造物之谜》皮影制作工艺盲盒',
    description: '一套8个，每个代表一个核心制作工序：选皮、制皮、画稿、镂刻、敷彩、发汗熨平、缀结、成影。隐藏款是一位正在工作的老匠人形象。',
    price: 298,
    imageUrl: 'https://picsum.photos/id/212/400/300',
    material: '环保树脂',
    features: ['8款常规 + 1款隐藏', '知识型收藏', '精美礼盒包装'],
    inventory: 30
  },
  {
    id: 4,
    category: '皮影工艺材料包（DIY体验盒）',
    name: '《光影匠坊》皮影DIY体验礼盒',
    description: '包含预雕刻好的皮影部件（安全材质）、传统颜料、上色笔刷、操作杆、组装线，以及手绘风格教学卡片（含二维码视频教程）。',
    price: 168,
    imageUrl: 'https://picsum.photos/id/213/400/300',
    material: '安全环保材质',
    features: ['完整工具套装', '视频教程', '适合亲子活动'],
    inventory: 40
  },
  {
    id: 5,
    category: '金属/珐琅徽章系列',
    name: '《鎏金匠韵》皮影工艺徽章',
    description: '采用仿古铜、珐琅彩工艺，设计成圆形或异形，图案提取自皮影雕刻的经典纹样，可搭配盲盒玩法收集不同纹样。',
    price: 88,
    imageUrl: 'https://picsum.photos/id/214/400/300',
    material: '黄铜+珐琅彩',
    features: ['仿古铜工艺', '经典纹样', '盲盒玩法'],
    inventory: 60
  },
  {
    id: 6,
    category: '匠人工具模型摆件',
    name: '《工具的温度》黄铜刻刀书签/摆件',
    description: '将皮影老艺人使用的刻刀微缩成黄铜的精致摆件或书签，附上卡片讲述这件工具在艺人心中的分量和故事。',
    price: 128,
    imageUrl: 'https://picsum.photos/id/215/400/300',
    material: '黄铜',
    features: ['黄铜材质', '故事卡片', '文房摆件'],
    inventory: 35
  }
]

// 添加到购物车功能
function addToCart(product, quantity = 1) {
  // 获取现有购物车
  let cart = JSON.parse(localStorage.getItem('shadowplayCart') || '[]')
  
  // 检查商品是否已在购物车中
  const existingItemIndex = cart.findIndex(item => item.id === product.id)
  
  if (existingItemIndex >= 0) {
    // 已存在则增加数量
    cart[existingItemIndex].quantity += quantity
  } else {
    // 不存在则添加新商品
    cart.push({
      id: product.id,
      name: product.name,
      price: product.price,
      imageUrl: product.imageUrl,
      quantity: quantity,
      category: product.category,
      material: product.material
    })
  }
  
  // 保存到localStorage
  localStorage.setItem('shadowplayCart', JSON.stringify(cart))
  
  // 显示添加成功提示
  alert(`${product.name} 已添加到购物车！`)
}

// 筛选产品的分类
const productCategories = [...new Set(craftsProducts.map(p => p.category))]
const selectedCategory = ref('全部')

function filterProducts() {
  if (selectedCategory.value === '全部') {
    return craftsProducts
  }
  return craftsProducts.filter(product => product.category === selectedCategory.value)
}
</script>

<template>
  <div class="about-container">
    <!-- 页面头部 -->
    <div class="page-header">
      <h1 class="page-title">关于皮影戏</h1>
      <p class="page-subtitle">传承千年的光影艺术</p>
    </div>

    <!-- 引言部分 -->
    <section class="intro-section container">
      <div class="intro-content">
        <p class="intro-text">
          皮影戏，又称“影子戏”或“灯影戏”，是一种以兽皮或纸板做成的人物剪影以表演故事的民间戏剧。表演时，艺人们在白色幕布后面，一边操纵影人，一边用当地流行的曲调讲述故事，同时配以打击乐器和弦乐，有浓厚的乡土气息。
        </p>
        <p class="intro-text">
          皮影戏是中国民间古老的传统艺术，老北京人都叫它"驴皮影"。据史书记载，皮影戏始于西汉，兴于唐朝，盛于清代，元代时期传至西亚和欧洲，可谓历史悠久，源远流长。
        </p>
      </div>
      <div class="intro-image">
        <img src="https://picsum.photos/id/200/600/400" alt="皮影戏表演" class="featured-image" />
      </div>
    </section>

    <!-- 历史发展 -->
    <section class="history-section">
      <div class="container">
        <h2 class="section-title">历史发展</h2>
        <div class="timeline">
          <div v-for="(item, index) in timelineItems" :key="index" class="timeline-item">
            <div class="timeline-dot"></div>
            <div class="timeline-content">
              <h3 class="timeline-period">{{ item.period }}</h3>
              <h4 class="timeline-event">{{ item.event }}</h4>
              <p class="timeline-description">{{ item.description }}</p>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- 艺术特点 -->
    <section class="features-section container">
      <h2 class="section-title">艺术特点</h2>
      <div class="features-content">
        <div class="feature-column">
          <div class="art-feature">
            <h3 class="feature-heading">造型艺术</h3>
            <p class="feature-text">皮影人物造型精美，采用平面化、艺术化的表现手法，具有强烈的装饰性和夸张性。人物形象通常头大身小，符合传统美学观念。</p>
          </div>
          <div class="art-feature">
            <h3 class="feature-heading">表演艺术</h3>
            <p class="feature-text">皮影戏表演需要艺人具备精湛的操纵技巧，能够通过手指的灵活运动，让影人做出各种生动的动作和表情。</p>
          </div>
        </div>
        <div class="feature-column">
          <div class="art-feature">
            <h3 class="feature-heading">音乐艺术</h3>
            <p class="feature-text">皮影戏音乐通常由打击乐器和弦乐组成，配合地方戏曲唱腔，形成独特的艺术风格，能够很好地烘托剧情氛围。</p>
          </div>
          <div class="art-feature">
            <h3 class="feature-heading">文学艺术</h3>
            <p class="feature-text">皮影戏的剧本多取材于历史故事、民间传说和神话故事，具有深厚的文学内涵和教育意义。</p>
          </div>
        </div>
      </div>
    </section>

    <!-- 制作工艺 -->
    <section class="crafting-section">
      <div class="container">
        <h2 class="section-title">制作工艺</h2>
        <p class="section-intro">
          皮影的制作是一项复杂而精细的工艺，需要经过多道工序，每一步都需要艺人的精心制作和耐心打磨。
        </p>
        <div class="crafting-steps">
          <div v-for="step in craftingSteps" :key="step.id" class="crafting-step">
            <div class="step-number">{{ step.id }}</div>
            <div class="step-content">
              <h3 class="step-name">{{ step.name }}</h3>
              <p class="step-description">{{ step.description }}</p>
            </div>
          </div>
        </div>
        <div class="crafting-gallery">
          <img src="https://picsum.photos/id/201/400/300" alt="皮影制作工艺" class="crafting-image" />
          <img src="https://picsum.photos/id/202/400/300" alt="皮影雕刻" class="crafting-image" />
          <img src="https://picsum.photos/id/203/400/300" alt="皮影着色" class="crafting-image" />
        </div>
        
        <!-- 匠影物语 - 皮影工艺收藏级周边系列 -->
        <div class="crafts-products-section">
          <h3 class="subsection-title">《匠影物语》皮影工艺收藏级周边系列</h3>
          <p class="subsection-intro">
            将一份匠心，握在手心。让古老的工艺以全新的形态融入日常生活，传承千年技艺，感受匠人精神。
          </p>
          
          <!-- 产品分类筛选 -->
          <div class="category-filters">
            <button 
              v-for="category in ['全部', ...productCategories]" 
              :key="category"
              @click="selectedCategory = category"
              :class="['category-filter-btn', { active: selectedCategory === category }]"
            >
              {{ category }}
            </button>
          </div>
          
          <!-- 产品展示 -->
          <div class="products-grid">
            <div v-for="product in filterProducts()" :key="product.id" class="product-card">
              <div class="product-image-container">
                <img :src="product.imageUrl" :alt="product.name" class="product-image" />
                <div class="product-category">{{ product.category }}</div>
                <div v-if="product.inventory <= 10" class="inventory-alert">
                  仅剩 {{ product.inventory }} 件
                </div>
              </div>
              <div class="product-info">
                <h4 class="product-name">{{ product.name }}</h4>
                <div class="product-material">材质：{{ product.material }}</div>
                <div class="product-features">
                  <span v-for="(feature, index) in product.features" :key="index" class="feature-tag">
                    {{ feature }}
                  </span>
                </div>
                <p class="product-description">{{ product.description }}</p>
                <div class="product-actions">
                  <div class="product-price">¥{{ product.price }}</div>
                  <button 
                    class="add-to-cart-btn" 
                    @click="addToCart(product)"
                    :disabled="product.inventory <= 0"
                  >
                    {{ product.inventory > 0 ? '加入购物车' : '已售罄' }}
                  </button>
                </div>
              </div>
            </div>
          </div>
          
          <!-- 营销与包装亮点 -->
          <div class="marketing-highlights">
            <h4 class="highlights-title">故事化包装与匠人精神</h4>
            <div class="highlights-grid">
              <div class="highlight-item">
                <div class="highlight-icon">📖</div>
                <div class="highlight-content">
                  <h5>匠人故事卡</h5>
                  <p>每个产品都附带一张"匠人卡"，介绍这道工序或这位手艺人的故事</p>
                </div>
              </div>
              <div class="highlight-item">
                <div class="highlight-icon">🎁</div>
                <div class="highlight-content">
                  <h5>精美包装</h5>
                  <p>包装上印上手艺人工作时的剪影或一句匠人语录</p>
                </div>
              </div>
              <div class="highlight-item">
                <div class="highlight-icon">🔗</div>
                <div class="highlight-content">
                  <h5>联名认证</h5>
                  <p>与知名皮影戏班或非遗传承人联名推出，增加收藏价值</p>
                </div>
              </div>
              <div class="highlight-item">
                <div class="highlight-icon">🎬</div>
                <div class="highlight-content">
                  <h5>体验升级</h5>
                  <p>高端系列附赠专属二维码，观看手艺人独家采访或制作花絮</p>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- 文化价值 -->
    <section class="value-section container">
      <h2 class="section-title">文化价值</h2>
      <div class="value-grid">
        <div class="value-item">
          <h3 class="value-title">历史价值</h3>
          <p class="value-text">皮影戏是中国传统文化的重要组成部分，见证了中国戏剧的发展历程，对于研究中国古代艺术、民俗和社会生活具有重要价值。</p>
        </div>
        <div class="value-item">
          <h3 class="value-title">艺术价值</h3>
          <p class="value-text">皮影戏融合了绘画、雕刻、音乐、表演等多种艺术形式，具有独特的艺术魅力和审美价值。</p>
        </div>
        <div class="value-item">
          <h3 class="value-title">教育价值</h3>
          <p class="value-text">皮影戏的内容多取材于历史故事和民间传说，通过生动有趣的表演，向观众传递传统价值观和道德观念。</p>
        </div>
        <div class="value-item">
          <h3 class="value-title">国际影响</h3>
          <p class="value-text">皮影戏早在元代就传入西亚和欧洲，对世界皮影艺术的发展产生了深远影响，是中国文化走向世界的重要使者。</p>
        </div>
      </div>
    </section>
  </div>
</template>

<style scoped>
/* 页面头部 */
.page-header {
  background-color: var(--color-secondary);
  color: white;
  text-align: center;
  padding: 3rem 2rem;
}

.page-title {
  font-size: 3rem;
  margin: 0 0 1rem 0;
  color: var(--color-accent);
  font-family: 'STZhongsong', serif;
}

.page-subtitle {
  font-size: 1.5rem;
  margin: 0;
  opacity: 0.9;
}

/* 通用容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-heading);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-primary);
}

/* 引言部分 */
.intro-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
}

.featured-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* 历史时间线 */
.history-section {
  background-color: var(--color-background-soft);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  width: 2px;
  height: 100%;
  background-color: var(--color-primary);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 0;
  left: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-primary);
  border: 4px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timeline-period {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin: 0 0 0.5rem 0;
}

.timeline-event {
  font-size: 1.5rem;
  color: var(--color-secondary);
  margin: 0 0 0.8rem 0;
}

.timeline-description {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* 艺术特点 */
.features-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.art-feature {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.art-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.feature-heading {
  font-size: 1.4rem;
  color: var(--color-secondary);
  margin: 0 0 1rem 0;
}

.feature-text {
  line-height: 1.7;
  color: var(--color-text-light);
}

/* 制作工艺 */
.crafting-section {
  background-color: var(--color-background-soft);
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

.crafting-steps {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.crafting-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.crafting-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
}

.step-name {
  font-size: 1.3rem;
  color: var(--color-secondary);
  margin: 0 0 0.5rem 0;
}

.step-description {
  line-height: 1.7;
  color: var(--color-text-light);
}

.crafting-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.crafting-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.crafting-image:hover {
  transform: scale(1.03);
}

/* 文化价值 */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-item {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.value-title {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin: 0 0 1rem 0;
}

.value-text {
  line-height: 1.7;
  color: var(--color-text-light);
}

/* 匠影物语产品展示区域 - 作为制作工艺的子部分 */
.crafts-products-section {
  background-color: #fff9ee;
  border-radius: 12px;
  padding: 2.5rem;
  margin-top: 3rem;
  border: 1px solid #f0e6d2;
}

.subsection-title {
  font-size: 2rem;
  text-align: center;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  position: relative;
}

.subsection-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--color-primary);
}

.subsection-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
  color: var(--color-text-light);
  font-style: italic;
}

/* 分类筛选按钮 */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.category-filter-btn {
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--color-primary);
  background-color: white;
  color: var(--color-primary);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.category-filter-btn:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.category-filter-btn.active {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(183, 133, 65, 0.3);
}

/* 产品网格 - 调整为适合子部分的布局 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

/* 产品卡片 - 调整为适合子部分的样式 */
.product-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 产品图片容器 */
.product-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--color-accent);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: bold;
}

.inventory-alert {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #e74c3c;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: bold;
}

/* 产品信息 */
.product-info {
  padding: 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1.2rem;
  color: var(--color-secondary);
  margin: 0 0 0.6rem 0;
  font-weight: bold;
}

.product-material {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.8rem;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.feature-tag {
  background-color: #f0e6d2;
  color: var(--color-primary);
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
}

.product-description {
  flex-grow: 1;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: bold;
}

.add-to-cart-btn {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-to-cart-btn:hover:not(:disabled) {
  background-color: var(--color-secondary);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(183, 133, 65, 0.3);
}

.add-to-cart-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* 营销亮点 - 调整为适合子部分的样式 */
.marketing-highlights {
  margin-top: 2.5rem;
}

.highlights-title {
  font-size: 1.5rem;
  text-align: center;
  color: var(--color-secondary);
  margin-bottom: 1.8rem;
  position: relative;
}

.highlights-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: var(--color-primary);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-3px);
}

.highlight-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.highlight-content h5 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 0 0 0.5rem 0;
}

.highlight-content p {
  color: var(--color-text-light);
  line-height: 1.5;
  font-size: 0.9rem;
  margin: 0;
}

/* 响应式设计 */
  @media (max-width: 768px) {
    .page-title {
      font-size: 2.2rem;
    }
    
    .page-subtitle {
      font-size: 1.2rem;
    }
    
    .intro-section {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    
    .features-content {
      grid-template-columns: 1fr;
    }
    
    .crafting-step {
      flex-direction: column;
      gap: 1rem;
    }
    
    .step-number {
      align-self: flex-start;
    }
    
    /* 子部分产品展示的响应式调整 */
    .crafts-products-section {
      padding: 1.5rem;
    }
    
    .subsection-title {
      font-size: 1.6rem;
    }
    
    .products-grid {
      grid-template-columns: 1fr;
    }
    
    .highlights-grid {
      grid-template-columns: 1fr;
    }
    
    .category-filters {
      justify-content: center;
      flex-direction: column;
      align-items: center;
    }
    
    .category-filter-btn {
      font-size: 0.9rem;
      padding: 0.7rem 1.2rem;
      width: 80%;
      max-width: 250px;
      text-align: center;
    }
    
    .product-image-container {
      height: 180px;
    }
  }
</style>
